import Vue from "vue";
import App from "./App.vue";
import router from "./router";
import ElementUI from "element-ui";
import { ElementTiptapPlugin } from "element-tiptap";
import "element-tiptap/lib/index.css";
import "element-ui/lib/theme-chalk/index.css";
import store from "./store";
import "@/permission";
import comJs from "@/components/index";
// import "@/api/mock";
import * as echarts from "echarts";
// import "@/mock";
import "@/styles/common.less";
Vue.prototype.$echarts = echarts;
Vue.use(comJs);
Vue.config.productionTip = false;
Vue.use(ElementUI);
// 安装富文本插件
Vue.use(ElementTiptapPlugin, {
  lang: "zh", // 设置语言为中文
});

new Vue({
  router,
  store,
  render: (h) => h(App),
}).$mount("#app");
